package com.qj.redis.init;

import org.springframework.stereotype.Component;

/**
 * @author dlw
 * @date 2025-05-15 17:00
 */
@Component
public abstract class AbstractCache {

    public abstract void initCache();

    public abstract <T> T getCache();

    public abstract void clearCache();

    public void reloadCache() {
        clearCache();
        initCache();
    }
}
